package com.ruoyi.web.controller.statistics;

import java.util.List;

import com.ruoyi.common.utils.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.statistics.domain.StatisticsInstall;
import com.ruoyi.statistics.service.IStatisticsInstallService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;

/**
 * 软件安装 信息操作处理
 * 
 * @author ruoyi
 * @date 2019-11-11
 */
@Controller
@RequestMapping("/statistics/statisticsInstall")
public class StatisticsInstallController extends BaseController
{
    private String prefix = "statistics/statisticsInstall";
	
	@Autowired
	private IStatisticsInstallService statisticsInstallService;
	
	@RequiresPermissions("statistics:statisticsInstall:view")
	@GetMapping()
	public String statisticsInstall(ModelMap mmap)
	{

		List<StatisticsInstall> list = statisticsInstallService.selectStatisticsInstallList(new StatisticsInstall());
		int lightningCpuCount1=0;
		int lightningCpuCount2=0;
		int lightningGpuCount1=0;
		int lightningGpuCount2=0;

		int clCpuCount1=0;
		int clCpuCount2=0;
		int clGpuCount1=0;
		int clGpuCount2=0;

		int jsGpuCount1=0;
		int jsGpuCount2=0;

		int tsGpuCount1=0;
		int tsGpuCount2=0;

		int daqing_count = 0;int daqing_xueyuan = 0;int daqing_teacher = 0;int liaohe_count = 0;int liaohe_xueyuan = 0;int liaohe_teacher = 0;
		int changqing_count = 0;int changqing_xueyuan = 0;int changqing_teacher = 0;int talimu_count = 0;int talimu_xueyuan = 0;int talimu_teacher = 0;
		int xinjiang_count = 0;int xinjiang_xueyuan = 0;int xinjiang_teacher = 0;int xinan_count = 0;int xinan_xueyuan = 0;int xinan_teacher = 0;
		int jilin_count = 0;int jilin_xueyuan = 0;int jilin_teacher = 0;int dagang_count = 0;int dagang_xueyuan = 0;int dagang_teacher = 0;
		int qinghai_count = 0;int qinghai_xueyuan = 0;int qinghai_teacher = 0;int huabei_count = 0;int huabei_xueyuan = 0;int huabei_teacher = 0;
		int tuha_count = 0;int tuha_xueyuan = 0;int tuha_teacher = 0;int jidong_count = 0;int jidong_xueyuan = 0;int jidong_teacher = 0;
		int yumen_count = 0;int yumen_xueyuan = 0;int yumen_teacher = 0;int meicengqi_count = 0;int meicengqi_xueyuan = 0;int meicengqi_teacher = 0;
		int nanfang_count = 0;int nanfang_xueyuan = 0;int nanfang_teacher = 0;int kantanbeijing_count = 0;int kantanbeijing_xueyuan = 0;int kantanbeijing_teacher = 0;
		int zhejiang_count = 0;int zhejiang_xueyuan = 0;int zhejiang_teacher = 0;int kantanxibei_count = 0;int kantanxibei_xueyuan = 0;int kantanxibei_teacher = 0;
		int hanzhoudizhi_count = 0;int hanzhoudizhi_xueyuan = 0;int hanzhoudizhi_teacher = 0;

		for (int i = 0; i < list.size(); i++) {
			StatisticsInstall install = list.get(i);
			String lightning_update_cpu = install.getLightningUpdateCpu();
			if (StringUtils.isNotEmpty(lightning_update_cpu)){
				lightningCpuCount1+=Integer.parseInt(lightning_update_cpu);
			}
			String lightning_new_cpu = install.getLightningNewCpu();
			if (StringUtils.isNotEmpty(lightning_new_cpu)){
				lightningCpuCount2+=Integer.parseInt(lightning_new_cpu);
			}
			String lightning_new_gpu = install.getLightningNewGpu();
			if (StringUtils.isNotEmpty(lightning_new_gpu)){
				lightningGpuCount1+=Integer.parseInt(lightning_new_gpu);
			}
			String lightning_update_gpu = install.getLightningUpdateGpu();
			if (StringUtils.isNotEmpty(lightning_update_gpu)){
				lightningGpuCount2+=Integer.parseInt(lightning_update_gpu);
			}



			String cl_update_cpu = install.getClUpdateCpu();
			if (StringUtils.isNotEmpty(cl_update_cpu)){
				clCpuCount1+=Integer.parseInt(cl_update_cpu);
			}
			String cl_new_cpu = install.getClNewCpu();
			if (StringUtils.isNotEmpty(cl_new_cpu)){
				clCpuCount2+=Integer.parseInt(cl_new_cpu);
			}
			String cl_update_gpu = install.getClUpdateGpu();
			if (StringUtils.isNotEmpty(cl_update_gpu)){
				clGpuCount1+=Integer.parseInt(cl_update_gpu);
			}
			String cl_new_gpu = install.getClNewGpu();
			if (StringUtils.isNotEmpty(cl_new_gpu)){
				clGpuCount2+=Integer.parseInt(cl_new_gpu);
			}


			String js_update_count = install.getJsUpdateCount();
			if (StringUtils.isNotEmpty(js_update_count)){
				jsGpuCount1+=Integer.parseInt(js_update_count);
			}
			String js_new_count = install.getJsNewCount();
			if (StringUtils.isNotEmpty(js_new_count)){
				jsGpuCount2+=Integer.parseInt(js_new_count);
			}


			String ts_update_count = install.getTsUpdateCount();
			if (StringUtils.isNotEmpty(ts_update_count)){
				tsGpuCount1+=Integer.parseInt(ts_update_count);
			}
			String ts_new_count = install.getTsNewCount();
			if (StringUtils.isNotEmpty(ts_new_count)){
				tsGpuCount2+=Integer.parseInt(ts_new_count);
			}


			if (install.getUnitid()==1)
			{
				daqing_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore())? "0" : install.getClNewGpucore());
				daqing_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				daqing_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount())? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==2)
			{
				liaohe_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				liaohe_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount())? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				liaohe_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount())? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==3)
			{
				changqing_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore())? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				changqing_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				changqing_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount())? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==4)
			{
				talimu_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				talimu_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount())? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount())? "0" : install.getJsUpdateCount());
				talimu_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==5)
			{
				xinjiang_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore())? "0" : install.getClNewGpucore());
				xinjiang_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				xinjiang_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==6)
			{
				xinan_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore())? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				xinan_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				xinan_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==7)
			{
				jilin_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				jilin_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				jilin_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==8)
			{
				dagang_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore())? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				dagang_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				dagang_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount())? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==9)
			{
				qinghai_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore())? "0" : install.getClNewGpucore());
				qinghai_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				qinghai_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==10)
			{
				huabei_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				huabei_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				huabei_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==11)
			{
				tuha_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				tuha_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				tuha_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==12)
			{
				jidong_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				jidong_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				jidong_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==13)
			{
				yumen_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				yumen_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				yumen_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==14)
			{
				zhejiang_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				zhejiang_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				zhejiang_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==15)
			{
				meicengqi_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				meicengqi_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				meicengqi_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==16)
			{
				nanfang_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				nanfang_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				nanfang_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==17)
			{
				kantanbeijing_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				kantanbeijing_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				kantanbeijing_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==18)
			{
				kantanxibei_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				kantanxibei_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				kantanxibei_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			else if (install.getUnitid()==19)
			{
				hanzhoudizhi_count = Integer.parseInt(StringUtils.isEmpty(install.getClUpdateGpucore()) ? "0" : install.getClUpdateGpucore()) + Integer.parseInt(StringUtils.isEmpty(install.getClNewGpucore()) ? "0" : install.getClNewGpucore());
				hanzhoudizhi_xueyuan = Integer.parseInt(StringUtils.isEmpty(install.getJsNewCount()) ? "0" : install.getJsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getJsUpdateCount()) ? "0" : install.getJsUpdateCount());
				hanzhoudizhi_teacher = Integer.parseInt(StringUtils.isEmpty(install.getTsNewCount()) ? "0" : install.getTsNewCount()) + Integer.parseInt(StringUtils.isEmpty(install.getTsUpdateCount()) ? "0" : install.getTsUpdateCount());
			}
			
		}

		mmap.put("lightningCpuCount", lightningCpuCount1 + lightningCpuCount2);
		mmap.put("lightningGpuCount", lightningGpuCount1 + lightningGpuCount2);

		mmap.put("clCpuCount", clCpuCount1 + clCpuCount2);
		mmap.put("clGpuCount", clGpuCount1 + clGpuCount2);

		mmap.put("jsGpuCount", jsGpuCount1 + jsGpuCount2);

		mmap.put("tsGpuCount", tsGpuCount1 + tsGpuCount2);

		mmap.put("chulicounts", daqing_count + "," + liaohe_count + "," + changqing_count + "," + talimu_count + "," + xinjiang_count + "," + xinan_count + "," +
				jilin_count + "," + dagang_count + "," + qinghai_count + "," + huabei_count + "," + tuha_count + "," + jidong_count + "," + yumen_count + "," +
				zhejiang_count + "," + meicengqi_count + "," + nanfang_count + "," + kantanbeijing_count + "," + kantanxibei_count + "," + hanzhoudizhi_count);
		mmap.put("jieshicounts", daqing_xueyuan + "," + liaohe_xueyuan + "," + changqing_xueyuan + "," + talimu_xueyuan + "," + xinjiang_xueyuan + "," + xinan_xueyuan + "," +
				jilin_xueyuan + "," + dagang_xueyuan + "," + qinghai_xueyuan + "," + huabei_xueyuan + "," + tuha_xueyuan + "," + jidong_xueyuan + "," + yumen_xueyuan + "," +
				zhejiang_xueyuan + "," + meicengqi_xueyuan + "," + nanfang_xueyuan + "," + kantanbeijing_xueyuan + "," + kantanxibei_xueyuan + "," + hanzhoudizhi_xueyuan);
		mmap.put("tesecounts", daqing_teacher + "," + liaohe_teacher + "," + changqing_teacher + "," + talimu_teacher + "," + xinjiang_teacher + "," + xinan_teacher + "," +
				jilin_teacher + "," + dagang_teacher + "," + qinghai_teacher + "," + huabei_teacher + "," + tuha_teacher + "," + jidong_teacher + "," + yumen_teacher + "," +
				zhejiang_teacher + "," + meicengqi_teacher + "," + nanfang_teacher + "," + kantanbeijing_teacher + "," + kantanxibei_teacher + "," + hanzhoudizhi_teacher);


		return prefix + "/statisticsInstall";
	}
	
	/**
	 * 查询软件安装列表
	 */
	@RequiresPermissions("statistics:statisticsInstall:list")
	@PostMapping("/list")
	@ResponseBody
	public TableDataInfo list(StatisticsInstall statisticsInstall)
	{
		startPage();
        List<StatisticsInstall> list = statisticsInstallService.selectStatisticsInstallList(statisticsInstall);
		return getDataTable(list);
	}
	
	
	/**
	 * 导出软件安装列表
	 */
	@RequiresPermissions("statistics:statisticsInstall:export")
    @PostMapping("/export")
    @ResponseBody
    public AjaxResult export(StatisticsInstall statisticsInstall)
    {
    	List<StatisticsInstall> list = statisticsInstallService.selectStatisticsInstallList(statisticsInstall);
        ExcelUtil<StatisticsInstall> util = new ExcelUtil<StatisticsInstall>(StatisticsInstall.class);
        return util.exportExcel(list, "statisticsInstall");
    }
	
	/**
	 * 新增软件安装
	 */
	@GetMapping("/add")
	public String add()
	{
	    return prefix + "/add";
	}
	
	/**
	 * 新增保存软件安装
	 */
	@RequiresPermissions("statistics:statisticsInstall:add")
	@Log(title = "软件安装", businessType = BusinessType.INSERT)
	@PostMapping("/add")
	@ResponseBody
	public AjaxResult addSave(StatisticsInstall statisticsInstall)
	{		
		return toAjax(statisticsInstallService.insertStatisticsInstall(statisticsInstall));
	}

	/**
	 * 修改软件安装
	 */
	@GetMapping("/edit/{id}")
	public String edit(@PathVariable("id") Long id, ModelMap mmap)
	{
		StatisticsInstall statisticsInstall = statisticsInstallService.selectStatisticsInstallById(id);
		mmap.put("statisticsInstall", statisticsInstall);
	    return prefix + "/edit";
	}
	
	/**
	 * 修改保存软件安装
	 */
	@RequiresPermissions("statistics:statisticsInstall:edit")
	@Log(title = "软件安装", businessType = BusinessType.UPDATE)
	@PostMapping("/edit")
	@ResponseBody
	public AjaxResult editSave(StatisticsInstall statisticsInstall)
	{		
		return toAjax(statisticsInstallService.updateStatisticsInstall(statisticsInstall));
	}
	
	/**
	 * 删除软件安装
	 */
	@RequiresPermissions("statistics:statisticsInstall:remove")
	@Log(title = "软件安装", businessType = BusinessType.DELETE)
	@PostMapping( "/remove")
	@ResponseBody
	public AjaxResult remove(String ids)
	{		
		return toAjax(statisticsInstallService.deleteStatisticsInstallByIds(ids));
	}
	
}
